<script>
	export default {
		onLaunch: function() {
			uni.hideTabBar()
		},
		onShow: function() {
			let _this = this
			uni.getSystemInfo({
				success: (res) => {
					let statusBarHeight = 0;
					// #ifdef MP
					statusBarHeight = res.statusBarHeight + 44; // 假设导航栏高度是44px
					// #endif	
					// #ifndef MP
					statusBarHeight = res.statusBarHeight + 44
					// #endif	
					_this.$store.dispatch('app/setBarHeight', statusBarHeight)
					_this.$store.dispatch('app/setSafeAreaBottom', res.safeAreaInsets.bottom)
				}
			});

		},
		onHide: function() {},
		methods: {},
	};
</script>

<style lang="scss">
	/*每个页面公共css */
	@import "@/node_modules/uview-ui/index.scss";
	@import "@/utils/style/index.css";

	page {
		background-color: #0B0F12;
		color: #fff;
		font-size: 14px;
	}


</style>